package mapper;

import entity.Role;
import entity.Users;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import java.util.List;
import java.util.Map;

public interface UsersMapper {
    @Select("select * from users where account=#{account}")
    Users selectByAccount(String account);

    int update(Users users);

    int insert(Users users);

    @Delete("delete from users where id=#{id}")
    int delete(Integer id);

    @Select("select * from users where id=#{id}")
    Users selectById(Integer id);

    List<Users> selectByMap(Map<String, Object> params);

}
